
package ca.canadapost.ws.soap.ship.rate.v2;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;choice>
 *         &lt;element name="option">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;all>
 *                   &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/>
 *                   &lt;element name="option-name" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/>
 *                   &lt;element name="option-class" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/>
 *                   &lt;element name="prints-on-label" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *                   &lt;element name="qualifier-required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *                   &lt;element name="conflicting-options" minOccurs="0">
 *                     &lt;complexType>
 *                       &lt;complexContent>
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           &lt;sequence>
 *                             &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString" maxOccurs="unbounded"/>
 *                           &lt;/sequence>
 *                         &lt;/restriction>
 *                       &lt;/complexContent>
 *                     &lt;/complexType>
 *                   &lt;/element>
 *                   &lt;element name="prerequisite-options" minOccurs="0">
 *                     &lt;complexType>
 *                       &lt;complexContent>
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           &lt;sequence>
 *                             &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString" maxOccurs="unbounded"/>
 *                           &lt;/sequence>
 *                         &lt;/restriction>
 *                       &lt;/complexContent>
 *                     &lt;/complexType>
 *                   &lt;/element>
 *                 &lt;/all>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="messages" type="{http://www.canadapost.ca/ws/soap/ship/rate/v2}messages"/>
 *       &lt;/choice>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "option",
    "messages"
})
@XmlRootElement(name = "get-option-response")
public class GetOptionResponse {

    protected GetOptionResponse.Option option;
    protected Messages messages;

    /**
     * Gets the value of the option property.
     * 
     * @return
     *     possible object is
     *     {@link GetOptionResponse.Option }
     *     
     */
    public GetOptionResponse.Option getOption() {
        return option;
    }

    /**
     * Sets the value of the option property.
     * 
     * @param value
     *     allowed object is
     *     {@link GetOptionResponse.Option }
     *     
     */
    public void setOption(GetOptionResponse.Option value) {
        this.option = value;
    }

    /**
     * Gets the value of the messages property.
     * 
     * @return
     *     possible object is
     *     {@link Messages }
     *     
     */
    public Messages getMessages() {
        return messages;
    }

    /**
     * Sets the value of the messages property.
     * 
     * @param value
     *     allowed object is
     *     {@link Messages }
     *     
     */
    public void setMessages(Messages value) {
        this.messages = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;all>
     *         &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/>
     *         &lt;element name="option-name" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/>
     *         &lt;element name="option-class" type="{http://www.w3.org/2001/XMLSchema}normalizedString"/>
     *         &lt;element name="prints-on-label" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
     *         &lt;element name="qualifier-required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
     *         &lt;element name="conflicting-options" minOccurs="0">
     *           &lt;complexType>
     *             &lt;complexContent>
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 &lt;sequence>
     *                   &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString" maxOccurs="unbounded"/>
     *                 &lt;/sequence>
     *               &lt;/restriction>
     *             &lt;/complexContent>
     *           &lt;/complexType>
     *         &lt;/element>
     *         &lt;element name="prerequisite-options" minOccurs="0">
     *           &lt;complexType>
     *             &lt;complexContent>
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 &lt;sequence>
     *                   &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString" maxOccurs="unbounded"/>
     *                 &lt;/sequence>
     *               &lt;/restriction>
     *             &lt;/complexContent>
     *           &lt;/complexType>
     *         &lt;/element>
     *       &lt;/all>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {

    })
    public static class Option {

        @XmlElement(name = "option-code", required = true)
        @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
        protected String optionCode;
        @XmlElement(name = "option-name", required = true)
        @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
        protected String optionName;
        @XmlElement(name = "option-class", required = true)
        @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
        protected String optionClass;
        @XmlElement(name = "prints-on-label")
        protected boolean printsOnLabel;
        @XmlElement(name = "qualifier-required")
        protected boolean qualifierRequired;
        @XmlElement(name = "conflicting-options")
        protected GetOptionResponse.Option.ConflictingOptions conflictingOptions;
        @XmlElement(name = "prerequisite-options")
        protected GetOptionResponse.Option.PrerequisiteOptions prerequisiteOptions;

        /**
         * Gets the value of the optionCode property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getOptionCode() {
            return optionCode;
        }

        /**
         * Sets the value of the optionCode property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setOptionCode(String value) {
            this.optionCode = value;
        }

        /**
         * Gets the value of the optionName property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getOptionName() {
            return optionName;
        }

        /**
         * Sets the value of the optionName property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setOptionName(String value) {
            this.optionName = value;
        }

        /**
         * Gets the value of the optionClass property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getOptionClass() {
            return optionClass;
        }

        /**
         * Sets the value of the optionClass property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setOptionClass(String value) {
            this.optionClass = value;
        }

        /**
         * Gets the value of the printsOnLabel property.
         * 
         */
        public boolean isPrintsOnLabel() {
            return printsOnLabel;
        }

        /**
         * Sets the value of the printsOnLabel property.
         * 
         */
        public void setPrintsOnLabel(boolean value) {
            this.printsOnLabel = value;
        }

        /**
         * Gets the value of the qualifierRequired property.
         * 
         */
        public boolean isQualifierRequired() {
            return qualifierRequired;
        }

        /**
         * Sets the value of the qualifierRequired property.
         * 
         */
        public void setQualifierRequired(boolean value) {
            this.qualifierRequired = value;
        }

        /**
         * Gets the value of the conflictingOptions property.
         * 
         * @return
         *     possible object is
         *     {@link GetOptionResponse.Option.ConflictingOptions }
         *     
         */
        public GetOptionResponse.Option.ConflictingOptions getConflictingOptions() {
            return conflictingOptions;
        }

        /**
         * Sets the value of the conflictingOptions property.
         * 
         * @param value
         *     allowed object is
         *     {@link GetOptionResponse.Option.ConflictingOptions }
         *     
         */
        public void setConflictingOptions(GetOptionResponse.Option.ConflictingOptions value) {
            this.conflictingOptions = value;
        }

        /**
         * Gets the value of the prerequisiteOptions property.
         * 
         * @return
         *     possible object is
         *     {@link GetOptionResponse.Option.PrerequisiteOptions }
         *     
         */
        public GetOptionResponse.Option.PrerequisiteOptions getPrerequisiteOptions() {
            return prerequisiteOptions;
        }

        /**
         * Sets the value of the prerequisiteOptions property.
         * 
         * @param value
         *     allowed object is
         *     {@link GetOptionResponse.Option.PrerequisiteOptions }
         *     
         */
        public void setPrerequisiteOptions(GetOptionResponse.Option.PrerequisiteOptions value) {
            this.prerequisiteOptions = value;
        }


        /**
         * <p>Java class for anonymous complex type.
         * 
         * <p>The following schema fragment specifies the expected content contained within this class.
         * 
         * <pre>
         * &lt;complexType>
         *   &lt;complexContent>
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       &lt;sequence>
         *         &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString" maxOccurs="unbounded"/>
         *       &lt;/sequence>
         *     &lt;/restriction>
         *   &lt;/complexContent>
         * &lt;/complexType>
         * </pre>
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "optionCode"
        })
        public static class ConflictingOptions {

            @XmlElementRef(name = "option-code", type = JAXBElement.class)
            protected List<JAXBElement<String>> optionCode;

            /**
             * Gets the value of the optionCode property.
             * 
             * <p>
             * This accessor method returns a reference to the live list,
             * not a snapshot. Therefore any modification you make to the
             * returned list will be present inside the JAXB object.
             * This is why there is not a <CODE>set</CODE> method for the optionCode property.
             * 
             * <p>
             * For example, to add a new item, do as follows:
             * <pre>
             *    getOptionCode().add(newItem);
             * </pre>
             * 
             * 
             * <p>
             * Objects of the following type(s) are allowed in the list
             * {@link JAXBElement }{@code <}{@link String }{@code >}
             * 
             * 
             */
            public List<JAXBElement<String>> getOptionCode() {
                if (optionCode == null) {
                    optionCode = new ArrayList<JAXBElement<String>>();
                }
                return this.optionCode;
            }

        }


        /**
         * <p>Java class for anonymous complex type.
         * 
         * <p>The following schema fragment specifies the expected content contained within this class.
         * 
         * <pre>
         * &lt;complexType>
         *   &lt;complexContent>
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       &lt;sequence>
         *         &lt;element name="option-code" type="{http://www.w3.org/2001/XMLSchema}normalizedString" maxOccurs="unbounded"/>
         *       &lt;/sequence>
         *     &lt;/restriction>
         *   &lt;/complexContent>
         * &lt;/complexType>
         * </pre>
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "optionCode"
        })
        public static class PrerequisiteOptions {

            @XmlElementRef(name = "option-code", type = JAXBElement.class)
            protected List<JAXBElement<String>> optionCode;

            /**
             * Gets the value of the optionCode property.
             * 
             * <p>
             * This accessor method returns a reference to the live list,
             * not a snapshot. Therefore any modification you make to the
             * returned list will be present inside the JAXB object.
             * This is why there is not a <CODE>set</CODE> method for the optionCode property.
             * 
             * <p>
             * For example, to add a new item, do as follows:
             * <pre>
             *    getOptionCode().add(newItem);
             * </pre>
             * 
             * 
             * <p>
             * Objects of the following type(s) are allowed in the list
             * {@link JAXBElement }{@code <}{@link String }{@code >}
             * 
             * 
             */
            public List<JAXBElement<String>> getOptionCode() {
                if (optionCode == null) {
                    optionCode = new ArrayList<JAXBElement<String>>();
                }
                return this.optionCode;
            }

        }

    }

}
